import request from '@/utils/request'
// 登录请求
export const loginAPI = ({ username, password }) => {
  return request({
    url: '/mall-user/ums/member/login',
    method: 'POST',
    data: {
      username,
      password
    }
  })
}
export const registerAPI = (memberData) => {
  return request({
    url: '/mall-user/ums/member/register',
    method: 'POST',
    data: memberData
  })
}
// 猜你喜欢数据请求
export const getLikeListAPI = ({ limit = 4 }) => {
  return request({
    url: '/mall-product/product/relevant',
    params: {
      limit
    }
  })
}



export const addAddressAPI = (data) => {
  return request({
    url: '/mall-user/member/address/add',
    method: 'POST',
    data: data
  })
  // return http.post('/api/address/add', data)
}